// 引入 variables.scss 以使用全局变量
@import '@/styles/variables';

.container {
  display: flex;
  position: relative;
  flex-direction: column;
  background-color: $bg-white;
}

.header {
  display: flex;
  padding: 16px 32px;

  .avatar {
    width: 80px;
    height: 80px;

    image {
      border-radius: 50%;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .userInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 16px;

    .userName {
      display: flex;
      align-items: center;
      margin-bottom: 8px;
      font-size: $font-size-base;
      gap: 10px;

      .vip {
        margin-left: 8px;
        width: 56px;
        height: 28px;
        display: flex;
        align-items: center;

        image {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }
      }
    }

    .userMeta {
      display: flex;
      align-items: center;

      .userStatus {
        font-size: $font-size-small;
        color: $sub-title-color;

        .statusDot {
          display: inline-block;
          margin-right: 8px;
          border-radius: 50%;
          width: 8px;
          height: 8px;
          vertical-align: middle;
        }

        .online {
          background: #52c41a;
        }

        .offline {
          background: #ff4d4f;
        }
      }

      .divider {
        margin: 0 8px;
        color: $sub-title-color;
      }

      .userLocation {
        margin-right: 16px;
        font-size: $font-size-small;
        color: $sub-title-color;
      }
    }

    ::after {
      content: '';
      display: block;
      position: absolute;
      bottom: 0;
      left: 32px;
      width: calc(100% - 64px);
      height: 1px;
      background-color: $border-gray;
    }
  }
}

.content {
  display: flex;
  flex-direction: column;

  .tag {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
  }

  .description {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 16px;
    line-height: $line-height-base;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-align: left;
    font-size: $font-size-base;
    color: $title-color;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    white-space: normal;
  }
}

.addBtn {
  display: flex;
  position: absolute;
  right: 64px;
  top: 32px;
  justify-content: center;
  align-items: center;
  padding: 8px 32px;
  border-radius: 200px;
  height: 56px;
  background-color: $primary-color;
  font-size: 28px;
  color: $white;
}

.addBtn2 {
  display: flex;
  position: absolute;
  right: 150px;
  top: 32px;
  justify-content: center;
  align-items: center;
  padding: 8px 32px;
  border-radius: 200px;
  height: 56px;
  background-color: $danger;
  font-size: 28px;
  color: $white;
  margin-right: 40px;
}

.yitianjia {
  display: flex;
  position: absolute;
  right: 64px;
  top: 32px;
  justify-content: center;
  align-items: center;
  padding: 8px 32px;
  height: 56px;
  font-size: 28px;
}